import Vue from 'vue'
import App from './App' 
// import MpvueRouterPatch from 'mpvue-router-patch'
// Vue.use(MpvueRouterPatch)
  
 
import './../static/iconfont/iconfont.css'
import './theme/base.scss'

Vue.config.productionTip = false
App.mpType = 'app'

const app = new Vue(App)
app.$mount()

export default { 
  // 这个字段走 app.json
  config: {
    // 页面前带有 ^ 符号的，会被编译成首页，其他页面可以选填，我们会自动把 webpack entry 里面的入口页面加进去
    pages: ['^pages/login/main','pages/index/main','pages/issue/main','pages/user/main','pages/contact/main'],
    window: {
      backgroundTextStyle: 'light',
      navigationBarBackgroundColor: '#fff',
      navigationBarTitleText: '仁青益寿',
      navigationBarTextStyle: 'black', 
    },
    tabBar: {
      color: '#bbb',
      selectedColor: '#DC4644',
      borderStyle: 'white',
      backgroundColor: '#fff',
      list: [
        {
          text: '首页',
          pagePath: 'pages/index/main',
          iconPath: 'static/images/home.png',
          selectedIconPath: 'static/images/home-actived.png'
        },
        {
          text: '咨询',
          pagePath: 'pages/issue/main',
          iconPath: 'static/images/note.png',
          selectedIconPath: 'static/images/note-actived.png'
        },
        {
          text: '我的',
          pagePath: 'pages/user/main',
          iconPath: 'static/images/profile.png',
          selectedIconPath: 'static/images/profile-actived.png'
        },
        {
          text: '客服',
          pagePath: 'pages/contact/main',
          iconPath: 'static/images/board.png',
          selectedIconPath: 'static/images/board-actived.png'
        }
      ]
    }
    
  }
}
